// pages/auth/index.js
import { request } from "../../request/index"
import { login } from "../../utils/async"
Page({

  /**
   * 页面的初始数据
   */
  data: {

  },
  async GetUserinfo(e) {
    const { encryptedData, rawData, iv, signature } = e.detail
    const { code } = await login()
    const Params = { encryptedData, rawData, iv, signature, code }



    const res = await request({ url: "https://api-hmugo-web.itheima.net/api/public/v1///users/wxlogin", method: "post", data: Params })
    console.log(res);



  }


})